﻿(*                  FnSharp              

   Base class library extensions and frameworks aimed 
   specifically at improving F# developers lives!

   Written by: Huw Simpson
   License: Microsoft Public License (Ms-PL) 
   Available at: http://fnsharp.codeplex.com

*)
namespace FnSharp.Bcl.Core

    open System
    open System.Diagnostics

    [<AutoOpen>]
    module PrintfPervasives =
        /// Writes a message to the debug trace.
        let trace s = Debug.Write s

        /// Writes a message to the debug trace followed by a line terminator.
        let tracen s = Debug.WriteLine s

        /// Writes a formated message to the debug trace.
        let tracef fmt = Printf.ksprintf Debug.Write fmt

        /// Writes a formatted message to the debug trace followed by a line terminator.
        let tracefn fmt = Printf.ksprintf Debug.WriteLine fmt

